import Vue from 'vue'
import App from './App.vue'

import router from './router'

//导入vant组件
import '@/utils/vant.js'

//导入全局样式
import './styles/base.less'
Vue.config.productionTip = false

//导入flexible插件
import 'amfe-flexible'
//导入vuex
import store from '@/store'
//导入moment
import moment from 'moment'
//将返回的数据改成中文
moment.locale('zh-cn')
//导入全局过滤器
Vue.filter('formatTime', (value) => {
  return moment(value).fromNow()
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
